package com.zhentao.controller;

import com.zhentao.service.DepartmentSonService;
import com.zhentao.vo.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/department")
public class DepartmentSon {
    @Autowired
    private DepartmentSonService departmentService;
    @RequestMapping("findByKid")
    public Result findByKid(Integer kid){
        return Result.OK(departmentService.findByKid(kid));
    }
}
